Passed
Pull Request — master (#28)
by Felipe Catão do
01:52
created

home.js ➔ teste2   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
1
import EngineApp from '../../Framework/engine.js'
2
import blackbox from '../components/blackBox.js'
3
import example from '../components/example.js'
4
import routes from '../routes/routes.js'
5
import reactive from '../../Framework/reactive.js'
6
7
let rot = new routes()
0 ignored issues
show
Coding Style Best Practice introduced by
By convention, constructors like routes should be capitalized.
Loading history...
8
let rec = new reactive()
0 ignored issues
show
Coding Style Best Practice introduced by
By convention, constructors like reactive should be capitalized.
Loading history...
9
10
let testea = "1"
11
let testb = "0"
12
function homePage(){
13
    rec.addReactiveElement(teste,teste2)
14
    rec.addReactiveElement(testeA,teste3)
15
    let eng = new EngineApp()
16
    eng.componentsEngine.createComponent("article1",articlePage())
17
    eng.componentsEngine.renderComponent("dinamic-Article","article1")
18
    blackbox("Lavine Testes","que isso rapaz a lavine é braba!")
19
    example("function ComponentTeste(args){<br>   eng.componentsEngine.createComponent('article1',articlePage())<br>}")
20
    document.getElementById("goBtn").addEventListener("click",goFunctions,false)
21
    //rec.createCycle()
22
    testea ="0"
23
24
}
25
function goFunctions(){
26
   rot.doc()
27
}
28
function articlePage(){
29
    return "<br> <br><br><div id='articles' class='articleComp container'>"+
30
    "<div class='row'>"+
31
    " <div class='col-md-8'><h1>What is Lavine</h1>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Deserunt consectetur odio praesentium? Omnis, deleniti? Necessitatibus, alias doloremque tempore velit dolorem incidunt est atque ab corrupti reiciendis ratione sequi impedit. Dolores?</div>"+
32
    "<div class='col-6 col-md-4'>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Sed velit nisi iure officia voluptas? Impedit suscipit veritatis ratione et sint quos necessitatibus illo cum provident! Voluptas ex necessitatibus aperiam reiciendis?</div>"+
33
    "</div>"
34
}
35
36
function teste(){
37
    return testea
38
}
39
function testeA(){
40
    return testb
41
}
42
function teste2(){
43
    console.log("Valor foi modificado A")
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
44
    document.getElementById("essaIdnemExiste").style.backgroundColor="red"
45
}
46
function teste3(){
47
    console.log("Valor foi modificado B")
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
48
}
49
50
export default homePage